package com.cetc.sdp.kmga.cs.common;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author： DengQiang
 * @date: 2017/10/13 18:56
 */
public class RabbitMQConf implements Serializable {

    private String mqHost;
    private int mqPort;
    private String mqUsername;
    private String mqPassword;
    private String mqNotifyQueue;
    private String mqNotifyExchange;
    private String mqDevExchange;
    private List<String> mqLogQueue = new ArrayList<>();
    private String mqAuditAlertExch;
    private String mqAuditAlertQueue;
    private Map<String, Integer> nodes = new HashMap<>();

    public String getMqHost() {
        return mqHost;
    }

    public void setMqHost(String mqHost) {
        this.mqHost = mqHost;
    }

    public int getMqPort() {
        return mqPort;
    }

    public void setMqPort(int mqPort) {
        this.mqPort = mqPort;
    }

    public String getMqUsername() {
        return mqUsername;
    }

    public void setMqUsername(String mqUsername) {
        this.mqUsername = mqUsername;
    }

    public String getMqPassword() {
        return mqPassword;
    }

    public void setMqPassword(String mqPassword) {
        this.mqPassword = mqPassword;
    }

    public String getMqNotifyQueue() {
        return mqNotifyQueue;
    }

    public void setMqNotifyQueue(String mqNotifyQueue) {
        this.mqNotifyQueue = mqNotifyQueue;
    }

    public String getMqNotifyExchange() {
        return mqNotifyExchange;
    }

    public void setMqNotifyExchange(String mqNotifyExchange) {
        this.mqNotifyExchange = mqNotifyExchange;
    }

    public String getMqDevExchange() {
        return mqDevExchange;
    }

    public void setMqDevExchange(String mqDevExchange) {
        this.mqDevExchange = mqDevExchange;
    }

    public List<String> getMqLogQueue() {
        return mqLogQueue;
    }

    public String getMqAuditAlertExch() {
        return mqAuditAlertExch;
    }

    public void setMqAuditAlertExch(String mqAuditAlertExch) {
        this.mqAuditAlertExch = mqAuditAlertExch;
    }

    public String getMqAuditAlertQueue() {
        return mqAuditAlertQueue;
    }

    public void setMqAuditAlertQueue(String mqAuditAlertQueue) {
        this.mqAuditAlertQueue = mqAuditAlertQueue;
    }

    public void addNode(String ip, int port) {
        nodes.put(ip, port);
    }

    public void addLogQueue(String queueName) {
        this.mqLogQueue.add(queueName);
    }

    public Map<String, Integer> getNodes() {
        return nodes;
    }
}
